import service from '@/utils/request'

// @Tags Case_struct_backup
// @Summary 创建Case_struct_backup
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Case_struct_backup true "创建Case_struct_backup"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /case_backup/createCase_struct_backup [post]
export const createCase_struct_backup = (data) => {
  return service({
    url: '/case_backup/createCase_struct_backup',
    method: 'post',
    data
  })
}

// @Tags Case_struct_backup
// @Summary 删除Case_struct_backup
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Case_struct_backup true "删除Case_struct_backup"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /case_backup/deleteCase_struct_backup [delete]
export const deleteCase_struct_backup = (data) => {
  return service({
    url: '/case_backup/deleteCase_struct_backup',
    method: 'delete',
    data
  })
}

// @Tags Case_struct_backup
// @Summary 删除Case_struct_backup
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Case_struct_backup"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /case_backup/deleteCase_struct_backup [delete]
export const deleteCase_struct_backupByIds = (data) => {
  return service({
    url: '/case_backup/deleteCase_struct_backupByIds',
    method: 'delete',
    data
  })
}

// @Tags Case_struct_backup
// @Summary 更新Case_struct_backup
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Case_struct_backup true "更新Case_struct_backup"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /case_backup/updateCase_struct_backup [put]
export const updateCase_struct_backup = (data) => {
  return service({
    url: '/case_backup/updateCase_struct_backup',
    method: 'put',
    data
  })
}

// @Tags Case_struct_backup
// @Summary 用id查询Case_struct_backup
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Case_struct_backup true "用id查询Case_struct_backup"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /case_backup/findCase_struct_backup [get]
export const findCase_struct_backup = (params) => {
  return service({
    url: '/case_backup/findCase_struct_backup',
    method: 'get',
    params
  })
}

// @Tags Case_struct_backup
// @Summary 分页获取Case_struct_backup列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Case_struct_backup列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /case_backup/getCase_struct_backupList [get]
export const getCase_struct_backupList = (params) => {
  return service({
    url: '/case_backup/getCase_struct_backupList',
    method: 'get',
    params
  })
}
